package com.mxpio.erp.quality.service.impl;

import com.mxpio.erp.common.quality.entity.InspectionBill;
import com.mxpio.erp.common.quality.entity.UnqualifiedDisposalLine;
import com.mxpio.erp.common.quality.service.UnqualifiedDisposalLineService;
import com.mxpioframework.jpa.JpaUtil;
import com.mxpioframework.jpa.query.Criteria;
import com.mxpioframework.system.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class UnqualifiedDisposalLineServiceImpl extends BaseServiceImpl<UnqualifiedDisposalLine> implements UnqualifiedDisposalLineService {
    @Override
    @Transactional
    public List<UnqualifiedDisposalLine> listWith(Criteria c) {
        return JpaUtil.linq(UnqualifiedDisposalLine.class).collect("bizNo", InspectionBill.class , "inspectionBillNo").where(c).list();
    }
}
